//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    background: ['demo-text-1.jpg', 'demo-text-2.jpg', 'demo-text-3.jpg'],
    indicatorDots: true,
    vertical: false,
    autoplay: true,
    interval: 2000,
    duration: 500,

    textColor: '#333333',

    categoryList: ['新鲜蔬菜','肉禽','鲜蛋','时令水果','米面粮油','海鲜水产','休食酒饮','调料干货','半成品','餐厨用品'],
    
    zcList: [
      {
        title: '蔬果专场',
        desc: '天天平价四季鲜',
        icon: ''
      },
      {
        title: '蔬果专场',
        desc: '天天平价四季鲜',
        icon: ''
      },
      {
        title: '蔬果专场',
        desc: '天天平价四季鲜',
        icon: ''
      },
      {
        title: '蔬果专场',
        desc: '天天平价四季鲜',
        icon: ''
      }
    ],
    selectedTitle: '新鲜蔬菜',
    idx: 0
  },
  gotoIndex: function(e){
    console.log(e)
    this.setData({
      idx : e.currentTarget.dataset.index
    })
  },
  onLoad: function () {
    
  }
})
